package cn.tedu.pet.product.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@Accessors(chain = true)
public class ClientUpdateInfoParam implements Serializable {
    @NotNull(message = "修改客户失败，必须提交客户姓名")
    @ApiModelProperty(value = "客户姓名",required = true,example = "客户的名称")
    private String name;
    @NotNull(message = "修改客户失败，必须提交客户电话")
    @ApiModelProperty(value = "客户姓名",required = true,example = "客户的电话")
    private String phone;
    @ApiModelProperty(value = "客户邮箱",required = true,example = "客户的邮箱")
    private String email;
    @ApiModelProperty(value = "客户是否是vip,1=是0=不是",required = true )
    @Range(max = 1,message = "排序必须0~1之间")
    private Integer vip;
    @ApiModelProperty(value = "客户地址",required = true,example = "客户的地址")
    private String address;
    @ApiModelProperty(value = "客户备注",required = true,example = "客户的备注")
    private String description;
    @ApiModelProperty(value = "客户宠物名字",required = true,example = "111")
    private String petName;
}
